<div class="panel-body">
  <div class="col-sm-3">
    <div class="input-group">
      <div class="input-group-btn"><span class="btn btn-default">登录名</span></div>
      <input type="text" class="form-control" ng-model="searchform.loginname">
    </div>
  </div>
  <div class="col-sm-3">
    <div class="input-group">
      <div class="input-group-btn"><span class="btn btn-default">名称</span></div>
      <input type="text" class="form-control" ng-model="searchform.username">
    </div>
  </div>
  <button class="btn m-b-xs w-xs btn-success" ng-click="search(1)">搜索</button>

  <div class="panel-body">
    <table class="table table-bordered ng-isolate-scope dataTable no-footer" 
      style="display: table; width: 100%;table-layout:fixed;">
      <thead>
        <tr>
          <th class="col-md-2 text-center">登录名</th>
          <th class="col-md-2 text-center">名称</th>
          <th class="col-md-2 text-center">手机</th>
          <!-- <th class="col-md-2 text-center">邮箱</th> -->
          <th class="col-md-3 text-center">拥有角色</th>
          <th class="col-md-2 text-center">操作</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="info in userList">
          <td>{{info.login_name}}</td>
          <td class="text-center">{{info.name}}</td>
          <td class="text-center">{{info.mobile}}</td>
          <!-- <td class="text-center">{{info.email}}</td> -->
          <td style="width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap">{{info.role_name}}</td>
          <td class="text-center">
            <button type="button" class="btn btn-info btn-xs" ng-click="getInfo(info.id)">查看</button>
            <button type="button" class="btn btn-info btn-xs" ng-click="update(info)">修改</button>
            <button type="button" class="btn btn-danger btn-xs" ng-click="delete(info.id, $index)">删除</button>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
  <div class="text-right" style="background-color: white">
    <pagination total-items="totalItems" ng-model="currentPage" ng-change="search(currentPage)" previous-text="上一页"
    next-text="下一页" first-text="首页" last-text="尾页" max-size="5" boundary-links="true" rotate="false"
    items-per-page="itemsPerPage" class="m-t-none m-b"></pagination>
  </div>
</div>
